<?php
/**
 * Created by PhpStorm.
 * User: ly
 * Date: 2017\12\15 0015
 * Time: 15:15
 */
use backend\controllers\DtActionFilter;
if(DtActionFilter::checkPackage('package_edit', Yii::$app->session->get('packageid')))
    echo '<img src="/image/assetPackage/edit.png" class="edit-img" id="historyInfoEdit">';
?>

<form class="" id="historyForm">
    <div class="perfect-logo">
        <img src="/image/officeHall/uploadAssetPackage/wsxx.png" class="pull-left">
        <span class="pull-left">流转、前期处置及维护情况</span>
    </div>
    <div class="table-responsive pull-left" >
            <?PHP
            if(count($data['history'])>0){
                $historyList='';
                $historyCheck='';
                echo '<table class="table">
                        <thead>
                        <tr>
                            <th class="text-left">转让日期</th>
                            <th class="text-left">转让方-受让方</th>
                            <th class="text-left" width="25%">转让内容</th>
                            <th class="text-left" width="25%">备注</th>
                        </tr>
                       </thead>
                       <tbody class="maintenance-tbody">';
                $history=$data['history'];
                foreach($history as $val){
                    $historyList.= '
                        <tr>
                            <td><input type="text"  value="'.$val['transfer_date'].'" disabled> </td>
                            <td><input type="text"  value="'.$val['transfer'].'" disabled placeholder="如：信达—中信"></td>
                            <td style="white-space:normal; ">'.$val['content'].'</td>
                            <td style="white-space:normal; ">'.$val['remark'].'</td>
                        </tr>';
                }
                echo $historyList;
                echo '</tbody></table>';
            }
            ?>
    </div>
    <!-- 增删按钮 -->
    <div class="warning clearfix">
        <img src="/image/officeHall/uploadAssetPackage/warning.png" class="pull-left">
        <span class="pull-left">按照转让日期先后顺序填写</span>
    </div>
    <!-- 结束按钮 -->
</form>
